<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2019-08-15
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="../image/favicon.ico" type="image/ico"/>

    <title>贵美后台管理系统</title>

    <!-- Bootstrap -->
    <link href="../css/bootstrapcss/bootstrap.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../css/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../css/vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../css/vendors/iCheck/skins/flat/green.css" rel="stylesheet">

    <!-- bootstrap-progressbar -->
    <link href="../css/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="../css/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <!-- bootstrap-daterangepicker -->
    <link href="../css/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../css/build/css/custom.min.css" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css" rel="stylesheet">

    <link href="../css/plugins/datapicker/datepicker3.css" rel="stylesheet">
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">

        <jsp:include page="left.jsp"/>

        <!-- top navigation -->
        <jsp:include page="top.jsp"/>
        <!-- /top navigation -->

        <!-- page content -->


        <div class="right_col" role="main">
            <div class="wrapper wrapper-content animated fadeInRight ecommerce">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="ibox-content m-b-sm border-bottom" style="margin-top: 30px">
                            <form class="form-horizontal" role="form" action="../product/doAdd.do" method="post" enctype="multipart/form-data">
                                <div class="form-group">
                                    <label for="prodName" class="col-sm-2 control-label">商品名称</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="prodName" name="prodName" placeholder="请输入商品名称" required>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="bigCtgr" class="col-sm-2 control-label">商品分类</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" id="bigCtgr" onchange="bigType()" required>
                                            <option value="">--请选择大类型--</option>
                                            <c:forEach items="${categoryList}" var="category">
                                                <option value="${category.bigCtgr}">${category.bigCtgr}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="ctgrId" class="col-sm-2 control-label"></label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="ctgrId" id="ctgrId" required>
                                            <option value="">--请选择小类型--</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="venId" class="col-sm-2 control-label">供应商</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="venId" id="venId" required>
                                            <option value="">--请选择供应商--</option>
                                            <c:forEach items="${vendorList}" var="vendor">
                                                <option value="${vendor.venId}">${vendor.venName}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="stkId" class="col-sm-2 control-label">库存</label>
                                    <div class="col-sm-9">
                                        <select class="form-control" name="stkId" id="stkId" required>
                                            <option value="">--请选择库存--</option>
                                            <c:forEach items="${stockList}" var="stock">
                                                <option value="${stock.stkId}">${stock.stkName}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="price" class="col-sm-2 control-label">价格</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="price" name="price" placeholder="请输入商品价格">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="type" class="col-sm-2 control-label">型号</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="type" name="type" placeholder="请输入商品型号">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="image" class="col-sm-2 control-label">图片</label>
                                    <div class="col-sm-9" style="margin-top: 5px">
                                        <input type="file" id="image" name="image" multiple>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="descr" class="col-sm-2 control-label">商品描述</label>
                                    <div class="col-sm-9">
                                        <textarea class="form-control" name="descr" id="descr" rows="6"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-12 text-center">
                                        <button type="submit" class="btn btn-primary btn-sm">保存</button>
                                        <button type="reset" class="btn btn-default btn-sm">重置</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <!-- /page content -->

        <!-- footer content -->
        <%--<footer>--%>
        <%--<div class="pull-right">--%>
        <%--Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>--%>
        <%--</div>--%>
        <%--<div class="clearfix"></div>--%>
        <%--</footer>--%>
        <!-- /footer content -->
    </div>
</div>

<!-- jQuery -->
<script src="../js/jquery-2.2.4.js"></script>
<!-- Bootstrap -->
<script src="../js/bootstrap.js"></script>
<!-- FastClick -->
<script src="../css/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="../css/vendors/nprogress/nprogress.js"></script>
<!-- Chart.js -->
<script src="../css/vendors/Chart.js/dist/Chart.min.js"></script>
<!-- gauge.js -->
<script src="../css/vendors/gauge.js/dist/gauge.min.js"></script>
<!-- bootstrap-progressbar -->
<script src="../css/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
<!-- iCheck -->
<script src="../css/vendors/iCheck/icheck.min.js"></script>
<!-- Skycons -->
<script src="../css/vendors/skycons/skycons.js"></script>
<!-- Flot -->
<script src="../css/vendors/Flot/jquery.flot.js"></script>
<script src="../css/vendors/Flot/jquery.flot.pie.js"></script>
<script src="../css/vendors/Flot/jquery.flot.time.js"></script>
<script src="../css/vendors/Flot/jquery.flot.stack.js"></script>
<script src="../css/vendors/Flot/jquery.flot.resize.js"></script>
<!-- Flot plugins -->
<script src="../css/vendors/flot.orderbars/js/jquery.flot.orderBars.js"></script>
<script src="../css/vendors/flot-spline/js/jquery.flot.spline.min.js"></script>
<script src="../css/vendors/flot.curvedlines/curvedLines.js"></script>
<!-- DateJS -->
<script src="../css/vendors/DateJS/build/date.js"></script>
<!-- JQVMap -->
<script src="../css/vendors/jqvmap/dist/jquery.vmap.js"></script>
<script src="../css/vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
<script src="../css/vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
<!-- bootstrap-daterangepicker -->
<script src="../css/vendors/moment/min/moment.min.js"></script>
<script src="../css/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>

<!-- Custom Theme Scripts -->
<script src="../css/build/js/custom.min.js"></script>
<!-- Custom and plugin javascript -->
<script src="../js/inspinia.js"></script>
<script src="../js/plugins/pace/pace.min.js"></script>

<!-- Data picker -->
<script src="../js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="../js/after/commons.js"></script>


</body>
</html>
